package xiegd.study.design.xiangyuan.wen2;

import cn.hutool.core.date.DateTime;

import java.util.Date;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/12/1 16:18
 */
public class Character {
    private char c;
    private CharacterStyle style;

    public Character(char c, CharacterStyle style) {
        this.c = c;
        this.style = style;
    }


    public static void main(String[] args) throws Exception{
        DateTime parse = cn.hutool.core.date.DateUtil.parse("2023-12-05"+" 23:59:59");
        if(parse.before(new Date())){
            throw new Exception("解除合同日期当前以及之后的日期");
        }
    }
}
